//
//  UIColor+ZZUtil.h
//  ZZKitDemo
//
//  Created by hfzhangzhang on 2018/8/13.
//  Copyright © 2018年 hfzhangzhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (ZZUtil)
+ (UIColor *)zz_randomColor;
+ (UIColor *)zz_colorWithString:(NSString *)string;
+ (UIColor *)zz_colorWithString:(NSString *)string alpha:(float)alpha;
+ (UIColor *)zz_colorWithHex:(long)hex;
+ (UIColor *)zz_colorWithHex:(long)hex alpha:(float)alpha;

- (UIColor *)zz_highlightedColor;//高亮
- (UIColor *)zz_disabledColor;//不可选
- (UIColor *)zz_invertColor;

- (CGFloat)zz_red; //当前红
- (CGFloat)zz_green;//当前绿
- (CGFloat)zz_blue;//当前蓝

- (CGFloat)zz_hue;//当前色度
- (CGFloat)zz_saturation;//当前色饱和度
- (CGFloat)zz_brightness;//亮度

- (CGFloat)zz_alpha;//当前透明的

@end
